package com.sumainfor.pc.epc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动类
 */
@SpringBootApplication
@EnableDiscoveryClient//启用服务注册与发现
@EnableFeignClients
@EnableHystrixDashboard
@ComponentScan(basePackages = {"com.sumainfor.pc.epc", "com.sumainfor.common.config"})
@MapperScan(basePackages = {"com.sumainfor.pc.epc.dao"})
public class EpcBackgroundApplication {

    public static void main(String[] args) {
        SpringApplication.run(EpcBackgroundApplication.class, args);
        System.out.println("---------工程部启动完成 ---------");
    }

}